package com.livemeter;

/*
 * Class represents MeterValue + additional functionality needed to display values visually.
 * */
public class MeterValueVisual 
{
	private MeterValue meterValue;
	
	//values in pixel..used by graph control to cache calculated values
	public int valuePercentile10_YAxis;
	public int valuePercentile90_YAxis;
	public int valueAverage_YAxis;
	public int valueLocalMeter_YAxis;
	// is updated on redraw - used as temp
	public int valueXAxis;

	public MeterValueVisual(MeterValue meterValue)
	{
		this.meterValue = meterValue;
	}
	
	public int getValuePercentile10() {
		return meterValue.getValuePercentile10();
	}

	public int getValuePercentile90() {
		return meterValue.getValuePercentile90();
	}

	public int getValueAverage() {
		return meterValue.getValueAverage();
	}

	public int getValueLocalMeter() {
		return meterValue.getValueLocalMeter();
	}

	// TimeStamp in ms since 1970
	public long getTimeMS() {
		return meterValue.getTime();
	}

	public MeterValue getMeterValue()
	{
		return this.meterValue;
	}
}
